package com.ztgf.shopping.models.service.shop;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.shopping.models.bo.shop.ShopQualificationBO;
import com.ztgf.shopping.models.bo.shop.ShopQualificationSaveBO;
import com.ztgf.shopping.models.dto.shop.ShopQualificationDTO;
import com.ztgf.shopping.models.vo.shop.ShopQualificationBrandVO;

import java.util.List;

/**
 * 店铺资质表服务
 *
 * @author zhanghualang
 * @Date 2020-05-28 14:40:54
 */
public interface IShopQualificationService extends IService<ShopQualificationDTO> {

    boolean getIsExpire(Long shopId);//判断基本资质是否过期

    boolean add(ShopQualificationSaveBO saveBO);

    List<ShopQualificationBrandVO> queryBrandList(Long shopId); //获取品牌资质列表

    ShopQualificationBrandVO queryBrandQCList(ShopQualificationBO bo);//获取品牌资质列表及其类目

    ShopQualificationDTO getByShopIdAndType(Long shopId,Integer type);

    ShopQualificationBrandVO queryBrandQCTree(ShopQualificationBO bo); //获取品牌资质列表及其类目树

    boolean getExpireStatus(Long shopId, Long brandId);//获取该品牌下是否有资质过期状态 true正常 false过期

    List<ShopQualificationDTO> queryExpire(Long minNo, Integer PageNo); //获取到期状态的资质

    List<ShopQualificationDTO> queryBeforExpire(Long minNo, Integer PageNo); //获取即将到期状态的资质
}
